package com.sihai.ehr.web.pojo;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.Date;

public class UserSetupPojo {

    private Long userId;
    private Long workId;//employeeinfoWork id
    private String workNo;//工号
    private String name;//姓名
    private String department;//部门
    private String dutyName;//职务
    private String loginName;//登录名称 (用户名）
    private Date loginTime;//最后登录时间
    private String password;//旧密码
    private String newPassword;//新密码

    public UserSetupPojo() {
    }

    public UserSetupPojo(Long id, String name, String loginName) {
        this.userId = id;
        this.name = name;
        this.loginName = loginName;
    }

    public UserSetupPojo(Long userId, Long workId, String workNo, String name, String department, String dutyName, String loginName, Date loginTime) {
        this.userId = userId;
        this.workId = workId;
        this.workNo = workNo;
        this.name = name;
        this.department = department;
        this.dutyName = dutyName;
        this.loginName = loginName;
        this.loginTime = loginTime;
    }

    public Long getWorkId() {
        return workId;
    }

    public void setWorkId(Long workId) {
        this.workId = workId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getWorkNo() {
        return workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getDutyName() {
        return dutyName;
    }

    public void setDutyName(String dutyName) {
        this.dutyName = dutyName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE, false)
			.concat(String.format("@hashCode=%s", this.hashCode()));
    }
}
